<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="../../../js/resources/js-test-style.css">
<script src="../../../../resources/js-test.js"></script>
<style>
#frame {
    width: 200px;
    height: 200px;
    position: relative;
}
</style>
</head>
<body>
<iframe id="frame" src="resources/context-menu-on-two-finger-tap-iframe-inner.html"></iframe>
<p id="description"></p>
<div id="console"></div>
</body>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

function recordContextMenu(event)
{
    debug("PASS contextmenu in iframe");
    finishJSTest();
}

function runTest()
{
    description('This test checks that the context menu is sent to the iframe on a two finger tap gesture.');

    if (!window.eventSender || !eventSender.gestureTwoFingerTap) {
        debug("gestureTwoFingerTap not implemented by this platform");
        return;
    }

    eventSender.gestureTwoFingerTap(100, 100);
}
</script>
</html>

